package cn.gson.oasys.services.system.impl;

import cn.gson.oasys.model.dao.system.TypeDao;
import cn.gson.oasys.model.entity.system.SystemTypeList;
import cn.gson.oasys.services.system.TypeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

@Service
@Transactional
public class TypeServiceImpl implements TypeService {

    @Autowired
    private TypeDao typeDao;

    //记日志
    Logger log = LoggerFactory.getLogger(getClass());

    //根据类型id获取类型名称
    @Override
    public String findname(Long typeId) {
        return typeDao.findname(typeId);
    }

    //根据TypeModel获取系统类型列表信息
    @Override
    public List<SystemTypeList> findByTypeModel(String aoa_plan_list) {
        return typeDao.findByTypeModel(aoa_plan_list);
    }

    //根据类型id获取类型信息
    @Override
    public SystemTypeList findOne(Long type_id) {
        return typeDao.findOne(type_id);
    }
}
